package org.scboy.rbac.dao;

import java.util.List;

import org.scboy.coobi.sql.SqlEntity;
import org.scboy.utils.annotations.coobi.Execute;
import org.scboy.utils.annotations.coobi.Table;
import org.scboy.utils.entitys.coobi.Model;
import org.scboy.utils.enums.coobi.ExecuteType;

/**
 * 
 * 用户登录会话业务类。
 * @author 杨浩
 *
 */
@Table("RBAC_LOGIN_SESSION")
public interface RbacLoginSessionDao extends SqlEntity {

	@Execute(id="RBAC_LOGINSESSION_QUERY_RESOURCES",type=ExecuteType.SELECT)
	public List<Model> queryUserResources(Model params);

	@Execute(id="RBAC_LOGINSESSION_QUERY_SYSS",type=ExecuteType.SELECT)
	public List<Model> queryUserSystems(Model params);

	@Execute(id="RBAC_LOGINSESSION_QUERY_PERMISSIONS",type=ExecuteType.SELECT)
	public List<Model> queryUserPermissions(Model params);

	@Execute(id="RBAC_LOGINSESSION_QUERY_PERMISSIONS",type=ExecuteType.COUNT)
	public Long checkAuth(Model params);
	

	@Execute(id="RBAC_LOGINSESSION_QUERY_MENUS",type=ExecuteType.SELECT)
	public List<Model> queryUserMenus(Model params);
}
